package com.stock.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.stock.entity.StockHistoryDataEntity;
import com.stock.vo.StockHistoryDataResultVo;
import com.stock.vo.StockTradeDataResultVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IStockHistoryDataDao extends BaseMapper<StockHistoryDataEntity> {

    /**
     * 获取历史数据
     * @return
     */
    List<StockHistoryDataResultVo> getHistoryData();

    /**
     * 获取历史交易数据
     * @return
     */
    List<StockTradeDataResultVo> getHistoryTradeData(@Param("buyType") Integer buyType,@Param("sellType") Integer sellType);
}
